package com.esun.payment_api.mapper;

import com.esun.payment_api.bean.WxExaminerBean;
import com.esun.payment_api.bean.WxMessageBean;
import com.esun.payment_api.domain.EsunFlow;
import com.esun.payment_api.domain.XcxInfo;
import com.esun.payment_api.domain.XcxInfoExample;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface XcxInfoMapper {
    long countByExample(XcxInfoExample example);

    int deleteByExample(XcxInfoExample example);

    int deleteByPrimaryKey(Short id);

    int insert(XcxInfo record);

    int insertSelective(XcxInfo record);

    List<XcxInfo> selectByExample(XcxInfoExample example);

    XcxInfo selectByPrimaryKey(Short id);

    int updateByExampleSelective(@Param("record") XcxInfo record, @Param("example") XcxInfoExample example);

    int updateByExample(@Param("record") XcxInfo record, @Param("example") XcxInfoExample example);

    int updateByPrimaryKeySelective(XcxInfo record);

    int updateByPrimaryKey(XcxInfo record);

    XcxInfo getApp();

    WxMessageBean getWxMessage(Integer flowId);

    List<WxExaminerBean> getOpenIdList(Integer flowId);

    List<WxExaminerBean> getOperatorOpenIdList(Integer flowId);

    EsunFlow getOngoingFlow(Short flowType, Integer fromId);
}